Strip first unused argument when passing to subcommand
authorJan-Erik Rediger <janerik@fnordig.de>
Tue, 24 Feb 2015 11:00:58 +0000 (12:00 +0100)
committerJan-Erik Rediger <janerik@fnordig.de>
Tue, 24 Feb 2015 20:10:22 +0000 (21:10 +0100)
src/bin/cargo.rs

index b69459da71e750fd2fb5de67d4ec57ed3b3a5761..a7acdb04cdd8100c0eafbe6359e94ac471346577 100644 (file)
@@ -164,7 +164,7 @@ fn execute_subcommand(cmd: &str, args: &[String], shell: &mut MultiShell) {
         }
     };
     let status = Command::new(command)
-                         .args(args)
+                         .args(&args[1..])
                          .stdin(InheritFd(0))
                          .stdout(InheritFd(1))
                          .stderr(InheritFd(2))